package io_exercise;

import java.io.*;

public class OISDemo1 {
    public static void main(String[] args) throws IOException, ClassNotFoundException {
        FileInputStream fis1=new FileInputStream("student1.obj");
        ObjectInputStream ois1=new ObjectInputStream(fis1);
        Object obj1=ois1.readObject();
        Student1 zs=(Student1)obj1;
        System.out.println(zs);
        ois1.close();
    }
}
